/*
 * Copyright (C) 2008 GeoScheduler Team, as stated on <http://www.geoscheduler.org/authors>.
 * 
 * This file is part of GeoScheduler.
 * 
 * GeoScheduler is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * GeoScheduler is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 * 
 * You should have received a copy of the GNU Lesser General Public License
 * along with GeoScheduler. If not, see <http://www.gnu.org/licenses/>.
 */
package org.geoscheduler.dao;

import java.util.List;

import org.geoscheduler.model.Event;
import org.geoscheduler.model.dto.EventQueryDTO;
import org.springframework.dao.DataAccessException;

/**
 * FIXME [lko] comment me!
 * 
 * @author lko
 */
public interface EventDAO extends BasicGSDAO<Event, Long> {

	List<Event> loadByIdAccount(Long id) throws DataAccessException;

	int deleteByIdAccount(Long accountId) throws DataAccessException;

	boolean isOwnedByIdAccount(Long eventId, Long accountId) throws DataAccessException;

	List<Event> query(EventQueryDTO queryDTO) throws DataAccessException;
	
	int removeTag(Long eventId, Long tagId) throws DataAccessException;

	int addTag(Long eventId, Long tagId) throws DataAccessException;

}
